package com.kitty.web.service.impl;

import com.kitty.web.core.Convert;
import com.kitty.web.domain.PBosscount;
import com.kitty.web.mapper.PBosscountMapper;
import com.kitty.web.service.IPBosscountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 挑战次数Service业务层处理
 * 
 * @author soul
 * @date 2022-03-19
 */
@Service
public class PBosscountServiceImpl implements IPBosscountService
{
    @Autowired
    private PBosscountMapper pBosscountMapper;

    /**
     * 查询挑战次数
     * 
     * @param id 挑战次数ID
     * @return 挑战次数
     */
    @Override
    public PBosscount selectPBosscountById(Long id)
    {
        return pBosscountMapper.selectPBosscountById(id);
    }

    /**
     * 查询挑战次数列表
     * 
     * @param pBosscount 挑战次数
     * @return 挑战次数
     */
    @Override
    public List<PBosscount> selectPBosscountList(PBosscount pBosscount)
    {
        return pBosscountMapper.selectPBosscountList(pBosscount);
    }

    /**
     * 新增挑战次数
     * 
     * @param pBosscount 挑战次数
     * @return 结果
     */
    @Override
    public int insertPBosscount(PBosscount pBosscount)
    {
        return pBosscountMapper.insertPBosscount(pBosscount);
    }

    /**
     * 修改挑战次数
     * 
     * @param pBosscount 挑战次数
     * @return 结果
     */
    @Override
    public int updatePBosscount(PBosscount pBosscount)
    {
        return pBosscountMapper.updatePBosscount(pBosscount);
    }

    /**
     * 删除挑战次数对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePBosscountByIds(String ids)
    {
        return pBosscountMapper.deletePBosscountByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除挑战次数信息
     * 
     * @param id 挑战次数ID
     * @return 结果
     */
    @Override
    public int deletePBosscountById(Long id)
    {
        return pBosscountMapper.deletePBosscountById(id);
    }
}
